﻿package mortal.game.view.lotteryDraw
{
    import com.mui.controls.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;

    public class LotteryDrawActiveZuanView extends GSprite
    {
        private var _numTxt:BitmapNumberText;
        private var _addNumTxt:BitmapNumberText;
        private var _addImg:GImageBitmap;
        private var _add20Img:GImageBitmap;

        public function LotteryDrawActiveZuanView()
        {
            return;
        }// end function

        public function updateNum(param1:int) : void
        {
            this._numTxt.value = param1;
            this._addNumTxt.value = Math.floor(param1 * 0.2);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._numTxt = UIFactory.bitmapNumberText(15, 0, "PetGrowYellowNum.png", 18, 21, -2, this, 9, BitmapNumberText.Mid);
            this._addNumTxt = UIFactory.bitmapNumberText(95, 0, "PetGrowYellowNum.png", 18, 21, -2, this, 9, BitmapNumberText.Mid);
            this._addImg = UIFactory.gImageBitmap(ImagesConst.LotteryDrawActivAdd, 50, 5, this);
            this._add20Img = UIFactory.gImageBitmap(ImagesConst.LotteryDrawActivAdd20, 80, -90, this);
            this.pushUIToDisposeVec(this._numTxt);
            this.pushUIToDisposeVec(this._addNumTxt);
            this.pushUIToDisposeVec(this._addImg);
            this.pushUIToDisposeVec(this._add20Img);
            return;
        }// end function

    }
}
